package com.sys.entity;

import com.bhudy.annotation.ManyToOne;
import com.bhudy.annotation.PrimaryKey;

/**
 * @Author com.bhudy
 * @Description 用户关联角色
 * @Date 2019-10-30 23:09:37
 */
public class SysUserRole {

    @PrimaryKey
    private Long id;    //编码
    private Long userId;    //用户ID
    private Long roleId;    //角色ID
    @ManyToOne("roleId")
    private SysRole sysRole;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
     }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
     }

    public SysRole getSysRole() {
        return sysRole;
    }

    public void setSysRole(SysRole sysRole) {
        this.sysRole = sysRole;
    }
}
